package com.xiaoxx.model.dto.sys;

import com.xiaoxx.common.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * base--sys--菜单管理
 * </p>
 *
 * @author HX
 * @since 2023-07-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SysMenuDto", description = "新增后台菜单")
public class SysMenuDto extends BaseDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "指定父id")
    @NotBlank(message = "父级菜单id不能为空")
    private String pid;

    @ApiModelProperty(value = "菜单名")
    @NotBlank(message = "菜单名不能为空")
    private String name;

    @ApiModelProperty(value = "菜单url")
    private String url;

    @ApiModelProperty(value = "图标")
    @NotBlank(message = "菜单名路由不能为空")
    private String icon;

    @ApiModelProperty(value = "禁用(0-启用 1-禁用)")
    private Integer disable;

    @ApiModelProperty(value = "类型(0-目录 1-菜单)")
    private Integer type;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "菜单排序不能为空")
    private Integer sort;
}
